package com.zg.api.service;


import com.zg.common.core.dao.apis.entity.ApiProject;
import com.zg.common.core.service.IPageBaseService;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/16 20:10
 */

public interface ApiProjectService extends IPageBaseService<ApiProject> {

    /**
     * 根据code取项目
     * @param code
     * @return
     */
    ApiProject getByCode(String code);

    /**
     * 根据name取项目
     * @param name
     * @return
     */
    List<ApiProject> listByName(String name);

    /**
     *
     * @param ids
     * @param flag
     */
    void changeNamespace(List<Long> ids,boolean flag);
}
